package com.yf.dao.article;

import com.yf.dao.BaseDao;
import com.yf.entity.ShareEntity;
import com.yf.vo.ShareBackVo;

import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;

/**
 * 分享Dao
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Tue Aug 21 10:46:07 CST 2018
 */
public interface ShareDao extends BaseDao<ShareEntity> {

    ShareEntity getByUserAndArticle(@Param("userId")Long userId,@Param("articleId")Long articleId);

    /**
     * back 分享记录
     * @param params
     * @return
     */
    List<ShareBackVo> findShareRecord(Map<String, Object> params);

}
